<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<p id="test_p" onclick="clickp()">hello world</p>
<p id="test_p" onclick="clickp2()">hello world</p>
</body>
<script>
function clickp(){
    console.log("clicked")
}
</script>
<script src="testTemplate.js"></script>
</html>